package gdaswani.android.karaoke;

import gdaswani.android.karaoke.data.SQLHelper;
import android.app.ListFragment;
import android.os.Bundle;
import android.widget.SimpleCursorAdapter;

public class ResultFragment extends ListFragment {

	// This is the Adapter being used to display the list's data.
	SimpleCursorAdapter mAdapter;

	// If non-null, this is the current filter the user has provided.
	String mCurFilter;

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {

		super.onActivityCreated(savedInstanceState);

		// Create an empty adapter we will use to display the loaded data.
		mAdapter = new SimpleCursorAdapter(getActivity(),
				R.layout.song_list_item, null, new String[] {
						SQLHelper.tblSongs_NUMCODE, SQLHelper.tblSongs_TITLE,
						SQLHelper.tblSongs_ARTIST }, new int[] {
						R.id.songListItem_numCode, R.id.songListItem_title,
						R.id.songListItem_artist }, 0);

		setListAdapter(mAdapter);

	}

}
